package tvv.levelup.controller;

import org.springframework.stereotype.Controller;
import tvv.levelup.models.Pet;

/**
 * Created by VLAD on 02.09.2014.
 */
@Controller
public class PetFactory {

    public Pet createPet(PetType type) {
        switch (type) {
            case CAT: {
                Pet pet = new Pet();
                pet.setMood(60);
                return pet;
            }

            case DOG: {
                Pet pet = new Pet();
                pet.setMood(80);
                return pet;
            }
        }

        return null;
    }
}

